import Vue from "vue";
import VThrottle from "v-throttle";
import Contextmenu from "vue-contextmenujs";
import cookies from "vue-cookies";
import VueMeta from "vue-meta";
import auth from "@/util/auth";
import tabbar from "@/util/tabbar";
import isEmptyValue from "@/util/isEmptyValue";
import CommonSecondaryHeader from "@/components/CommonSecondaryHeader";
import CommonDetailTitle from "@/components/CommonDetailTitle";

Vue.directive("throttle", {});
Vue.use(VThrottle, {
  // 指令名称，可选，默认为 `v-throttle`
  name: "v-throttle",
  // 全局延时，可选，默认为 1000
  time: 2000,
  // 是否展示调试相关的信息，默认为false，不展示。注意：报错信息不会被关闭
  dev: false,
});

Vue.use(Contextmenu);
Vue.use(cookies);
Vue.use(VueMeta);

Vue.use(tabbar);
Vue.use(auth);
Vue.use(isEmptyValue);
Vue.use(CommonSecondaryHeader);
Vue.use(CommonDetailTitle);
